#ifndef _DSWLDCLIENT_H
#define _DSWLDCLIENT_H

#include <libtcpcombase/tcpcombase.h>

class CDswLdClient : public CTcpcombase
{
public:
	CDswLdClient(LPST_ENV_T pEnv, struct bufferevent * pBev, int nHeadSize, LPST_ALARM_MSG_T pAlarmMsg, char* pHost, int nPort, bool bIsV3);
	virtual ~CDswLdClient();
public:
	static CDswLdClient* createNew(LPST_ENV_T pEnv, LPST_ALARM_MSG_T pAlarmMsg, char* pHost, bool bIsV3);
private:
	virtual void OnConnect(struct bufferevent * bev, short events);
private:
	LPST_ENV_T m_pEnv;
	ST_ALARM_MSG_T m_nAlarmMsg;
	char m_sHost[32];
	int m_nPort;
	bool m_bIsV3;
};

#endif

